package com.yocard.yxyd.utils;


import com.yocard.yxyd.R;
import com.yocard.yxyd.ui.fragment.CustomerFragment;
import com.yocard.yxyd.ui.fragment.MeFragment;
import com.yocard.yxyd.ui.fragment.OrderFragment;

public enum MainTab {

    CHAT(0, "抢单", R.drawable.tab_icon_order,
            OrderFragment.class),

    NEWS(1, "客户", R.drawable.tab_icon_customer,
            CustomerFragment.class),

    ME(2, "我的", R.drawable.tab_icon_me,
            MeFragment.class);
    private int idx;
    private String resName;
    private int resIcon;
    private Class<?> clz;

    MainTab(int idx, String resName, int resIcon, Class<?> clz) {
        this.idx = idx;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
    }

    public int getIdx() {
        return idx;
    }

    public void setIdx(int idx) {
        this.idx = idx;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }
}
